<#include "../common/header.ftl">
      <!--main content start-->
      <section id="main-content">
          <section class="wrapper"> 
			<!-- content start -->
			
              <div class="row">
                  <div class="col-lg-12">
                      <section class="panel">
                          <header class="panel-heading">
                              	<div class="clearfix">
		                              <div class="btn-group">
		                              	      科目类型维护
		                              	  <a href="#myModal" data-toggle="modal" >
		                              	  	  <button class="btn green">
			                                    	 新增 <i class="icon-plus"></i>
			                                  </button>
		                              	  </a>
		                              </div>
		                        </div>
                          </header>
                          
                          <div class="panel-body">
                          
                          		<!-- 查询条件 Start -->
                  				 <form id="selectForm" class="form-horizontal" role="form" action="${(rc.contextPath)!}/exam/projecttype/index.htm" method="post">
                  				 	  <div class="row">
                  				 	  
	                  					 <div class="col-lg-6">
	                  						 <div class="form-group">
			                                      <label for="inputEmail1" class="col-lg-2 col-sm-2 control-label">科目名</label>
			                                      <div class="col-lg-10">
			                                          <input type="text" class="form-control" id="projectTypeName" name="projectTypeName" placeholder="科目名" value="${(projectTypeName)!}">
			                                      </div>
			                                  </div>
	                  				     </div>
	                  				     
	                  				     <div class="col-lg-6">
	                  						 <button type="submit" class="btn btn-info"><i class="icon-search"></i>查询</button>
	                  				     </div>
	                  				     
	                  				  </div>
	                              </form>
              		  			 <!-- 查询条件 End -->
                          
                          <table class="table table-striped table-advance table-hover">
                              <thead>
	                              <tr>
	                                  <th><i class="icon-bullhorn"></i> 科目名称</th>
	                                  <th class="hidden-phone"><i class="icon-question-sign"></i> 科目说明</th>
	                                  <th><i class="icon-bookmark"></i> 创建日期</th>
	                                  <th><i class=" icon-edit"></i> 状态</th>
	                                  <th></th>
	                              </tr>
                              </thead>
                              <tbody>
                              	  <#if projectTypeList??>
                              	  	<#list projectTypeList as projectType>
                              	  		  <tr>
			                                  <td><a href="#">${(projectType.project_type_name)!}</a></td>
			                                  <td class="hidden-phone">${(projectType.project_type_desc)!}</td>
			                                  <td>${(projectType.create_date?string('yyyy-MM-dd HH:mm:ss'))!} </td>
			                                  <td>
			                                  	  <#if projectType.status == "1">
			                                  	  	<span class="label label-info label-mini">有效</span>
			                                  	  <#else>
			                                  	  	<span class="label label-danger label-mini">无效</span>
			                                  	  </#if>
			                                  </td>
			                                  <td>
			                                      <a href="#myDeleteModal" data-toggle="modal" >
			                                      	<button class="btn btn-primary btn-xs"><i class="icon-pencil"></i></button>
			                                      </a>
			                                      <#-- 
			                                      <a href="#myDeleteModal" data-toggle="modal" >
			                                      	<button class="btn btn-danger btn-xs"><i class="icon-trash "></i></button>
			                                      </a>
			                                      -->
			                                      <button class="btn btn-danger btn-xs" onclick="openConfirm('${(projectType.project_type_id)!}')"><i class="icon-trash "></i></button>
			                                  </td>
			                              </tr>
                              	  	</#list>
                              	  </#if>
                              </tbody>
                          </table>
                          
                          <@macros.pageDiv pageObj=pageObj url="${(rc.contextPath)!}/exam/projecttype/index.htm" pageSize="5" queryForm="selectForm"/>
                         
                          
                          
                          <!-- 新增 弹出层 start -->
                          <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal" class="modal fade">
                              <div class="modal-dialog">
                                  <div class="modal-content">
                                      <div class="modal-header">
                                          <button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
                                          <h4 class="modal-title">科目类型维护</h4>
                                      </div>
                                      <div class="modal-body">

                                          <form class="form-horizontal" role="form" action="/exam/projecttype/save.htm">
                                          	  <div class="form-group">
			                                      <label for="examProjectName" class="col-lg-2 col-sm-2 control-label">科目名称</label>
			                                      <div class="col-lg-10">
			                                          <input type="text" class="form-control" id="examProjectName" name="examProjectName" placeholder="科目名称"
			                                                 forvalid="{required:科目名称不能为空,maxLength:6}"/>
			                                      </div>
			                                  </div>
			                                  
			                                  <div class="form-group">
			                                      <label for="examProjectDesc" class="col-lg-2 col-sm-2 control-label">科目说明</label>
			                                      <div class="col-lg-10">
			                                          <textarea class="form-control" id="examProjectDesc" name="examProjectDesc" cols="60" rows="5">
			                                          </textarea>
			                                      </div>
			                                  </div>
			                                  
			                                  <div class="form-group">
                                                  <div class="col-lg-offset-2 col-lg-10">
	                                                  <button type="submit" class="btn btn-info">保存</button>
	                                              </div>
                                              </div>
                                          </form>

                                      </div>
                                  </div>
                              </div>
                          </div>
                          <!-- 新增 弹出层 end -->
                          
                      </section>
                  </div>
              </div>
			<!-- content end   -->
          </section>
      </section>
      <!--main content end-->
<script type="text/javascript" src="${(rc.contextPath)!}/static/res/js/exam/project-type-list.js"></script>
<#include "../common/foot.ftl">
